package controllers;

import java.util.Date;

import play.mvc.With;

import models.TestRun;

@With (Secure.class)
@Check ("ta")
public class TestRuns extends CRUD {
	public static void start(long testId) {
		TestRun run = TestRun.findById(testId);
		run.process = 1;
		run.startTime = new Date().getTime();
		run.save();
		redirect("/admin/testruns/" + testId);
	}
}
